@model LoggedOutViewModel
@{
    ViewData["Title"] = "退出登录";
}
@{
    // set this so the layout rendering sees an anonymous user
    ViewData["signed-out"] = true;
}


<div class="row justify-content-md-center">
    <div class="col-sm-8">
        <div class="logged-out-page">
            <h1>
                登出
                <small>你已经退出登录</small>
            </h1>

            @if (Model.PostLogoutRedirectUri != null)
            {
                <div>
                    点击 <a class="PostLogoutRedirectUri" href="@Model.PostLogoutRedirectUri">此链接</a> 返回应用：
                    <span>@Model.ClientName</span>。
                </div>
            }

            @if (Model.SignOutIframeUrl != null)
            {
                <iframe width="0" height="0" class="signout" src="@Model.SignOutIframeUrl" style="display:none"></iframe>
            }
        </div>
    </div>
</div>

@section scripts
{
    @if (Model.AutomaticRedirectAfterSignOut)
    {
        <script src="~/js/signout-redirect.js"></script>
    }
}
